<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEventTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEventLabel_eventID}"/>
                    <h:outputText value="#{eventController.selected.eventID}" title="#{bundle.ViewEventTitle_eventID}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_eventName}"/>
                    <h:outputText value="#{eventController.selected.eventName}" title="#{bundle.ViewEventTitle_eventName}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_eventDesciption}"/>
                    <h:outputText value="#{eventController.selected.eventDesciption}" title="#{bundle.ViewEventTitle_eventDesciption}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_eventDate}"/>
                    <h:outputText value="#{eventController.selected.eventDate}" title="#{bundle.ViewEventTitle_eventDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEventLabel_eventStartTime}"/>
                    <h:outputText value="#{eventController.selected.eventStartTime}" title="#{bundle.ViewEventTitle_eventStartTime}">
                        <f:convertDateTime pattern="HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEventLabel_eventEndTime}"/>
                    <h:outputText value="#{eventController.selected.eventEndTime}" title="#{bundle.ViewEventTitle_eventEndTime}">
                        <f:convertDateTime pattern="HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEventLabel_eventCity}"/>
                    <h:outputText value="#{eventController.selected.eventCity}" title="#{bundle.ViewEventTitle_eventCity}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_eventIndoorOutdoor}"/>
                    <h:outputText value="#{eventController.selected.eventIndoorOutdoor}" title="#{bundle.ViewEventTitle_eventIndoorOutdoor}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_eventPublicPrivate}"/>
                    <h:outputText value="#{eventController.selected.eventPublicPrivate}" title="#{bundle.ViewEventTitle_eventPublicPrivate}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_eventNotification}"/>
                    <h:outputText value="#{eventController.selected.eventNotification}" title="#{bundle.ViewEventTitle_eventNotification}"/>
                    <h:outputText value="#{bundle.ViewEventLabel_userEmail}"/>
                    <h:outputText value="#{eventController.selected.userEmail}" title="#{bundle.ViewEventTitle_userEmail}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{eventController.destroyAndView}" value="#{bundle.ViewEventDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewEventEditLink}"/>
                <br />
                <h:commandLink action="#{eventController.prepareCreate}" value="#{bundle.ViewEventCreateLink}" />
                <br />
                <h:commandLink action="#{eventController.prepareList}" value="#{bundle.ViewEventShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewEventIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
